﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WindowsFormsView;

namespace WindowsFormsPresenter.TimeSheetSign
{
    public class TimeSheetSignsPresenter : Presenter<ITimeSheetSignsView>
    {
        public TimeSheetSignsPresenter(ITimeSheetSignsView view)
            : base(view)
        {
        }

        public void Display()
        {
            View.TimeSheetSigns = Model.GetTimeSheetSigns();
        }

        public void DisplayByPage(int currentPage)
        {
            View.TimeSheetSigns = Model.GetTimeSheetSignPaged(currentPage);
        }

        public int GetTotalPage()
        {
            return Model.GetTotalPageFromTimeSheetSign();
        }

        public void DisplayActive()
        {
            View.TimeSheetSigns = Model.GetTimeSheetSignsActive();
        }
    }
}
